#include "stdafx.h"
#include "Controller.h"


#ifndef __MiniKernel_h_
#define __MiniKernel_h_

/** The MiniKernel inherits from the FrameListener and makes sure all the controllers are updated
*/
class MiniKernel : public Ogre::FrameListener
{
public:
	// From FrameListener
	// virtual bool frameStarted(const FrameEvent& evt);
	virtual bool frameRenderingQueued(const Ogre::FrameEvent &evt);
	// virtual bool frameEnded(const FrameEvent& evt);

	void addController(Controller *controller);
	void removeController(Controller *controller);

	MiniKernel(Ogre::Root *root);
	~MiniKernel();

	

protected:


private:

};

#endif //#ifndef __MiniKernel_h_